home *** CD-ROM | disk | FTP | other *** search
/ PC PowerPlay 49 / PCPP49a.iso / editors / sofsdk / SoF SDK.msi / _2C08114CDB914488ABE9539DD3C07B38 < prev    next >
Encoding:
Text File  |  2000-03-27  |  1016 b   |  52 lines

  1. #include "../common/header.ds"
  2. output "p:/base/ds/tsr1"
  3. #include "tsr1.ds"
  4.  
  5.  
  6.  
  7.  
  8. local entity hostage1 // the hostage on the ground
  9. local entity badguy1 // the guy kicking the hostage
  10.  
  11. local entity host_count // the hostage counter for how many hostage events the player has seen
  12.  
  13.  
  14. hostage1 = find entity with targetname "hostage1"
  15. badguy1 = find entity with targetname "badguy1"
  16.  
  17. host_count = find entity with targetname "host_count"
  18.  
  19.  
  20.  
  21.  
  22.  
  23. on badguy1.health < 100 goto release_badguy1
  24.  
  25.  
  26.    animate entity badguy1 performing action STD_MKICKLOW_N_A_A    // the first kick to the hostage
  27.    play sound "speech/tsr1/npc/eb9-3.adp" for entity badguy1 at volume 0.9
  28.    wait 1 seconds 
  29.  
  30. label release
  31.  
  32.    animate entity badguy1 performing action SCRIPT_RELEASE
  33.  
  34.    animate entity hostage1 performing action SCRIPT_RELEASE
  35.    host_count.health += 1 // sets the hostage counter up by 1 
  36.    exit
  37.  
  38.  
  39.  
  40.  
  41. label release_badguy1
  42.  
  43.     reset ai for entity badguy1 
  44.  
  45. goto release
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.